/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.edu.cs576.HyperLinkVideo.authoringtool;

/**
 * Has coordinates of bottom right and top left vertices of frame.
 * @author Ludo
 */
public class KeyFrame {
    private int frame; //id number associated with keyFrame
    private int[] topLeftCoords;
    private int[] bottomRightCoords;
    
    public KeyFrame(int frame){
        this.frame = frame;
    }
    
    public void setCoords(TrackingArea area){
       topLeftCoords = area.getTopLeft();
       bottomRightCoords = area.getBottomRight();
    }
    
    public TrackingArea getTrackingArea(){
        TrackingArea area = new TrackingArea();
        area.setTopLeftAndBottomRight(topLeftCoords, bottomRightCoords);
        return area;
    }
    
    public void setTopLeftCoords(int[] topLeftCoords){
        this.topLeftCoords = topLeftCoords;
    }
    
    public void setBottomRightCoords(int[] bottomRightCoords){
        this.bottomRightCoords = bottomRightCoords;
    }
    
    public int[] getTopLeftCoords(){
        return topLeftCoords;
    }
    
    public int[] getBottomRightCoords(){
        return bottomRightCoords;
    }
    
    public int getFrame(){
        return frame;
    }
    
}
